import { createRouter, createWebHistory } from 'vue-router';
import Todo from '../views/Todo';

const routes = [
  {
    path: '/',
    name: 'Todo',
    component: Todo
  },
  {
    path: '/calender',
    name: 'Calender',
    component: () =>
      import(/* webpackChunkName: "calender" */ '../views/Calender')
  },
  {
    path: '/weather',
    name: 'Weather',
    component: () =>
      import(/* webpackChunkName: "weather" */ '../views/Weather')
  },
  {
    path: '/qrcode',
    name: 'QRCode',
    component: () => import(/* webpackChunkName: "qrcode" */ '../views/QRCode')
  }
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
});

export default router;
